	#{extends 'main.html' /}

#{if flag==true}

#{list items:tee, as:'topic'}
${topic.title} <a href="@{Topics.show(topic.id)}"> go to Topic  </a><br>
<a href="@{Topics.closeTopic(topic.id)}">Close Topic  </a> <br>
<a href="@{Topics.editingTopic(topic.id)}">edit Topic</a> <br>
<a href="@{Topics.relatingTopics(topic.id)}">relate Topic </a> <br>
#{/list}

<FORM NAME="addingTopicTag" ACTION="@Tags.tagMyTopics()" METHOD="post">

<input type="hidden" name ="ownerId"  id ="ownerId" value ="${user.id}" >
Add a Tag :- <INPUT TYPE="text" NAME=tag  id = tag  ><P>
<input type = hidden  name = taggedTopicId id = taggedTopicId value= ${topic.id} >
<INPUT TYPE="submit" NAME="Add Tag" Value="Add Tag" >
</FORM>

<form NAME="addingTopicTag" ACTION="@Topics.toSpamTopic()" METHOD="post">
<input type = hidden name =id id = id value =${topic.id}>
<input type = submit name ="Spam" value = "Spam">
</form>
#{/if}
#{else}
 there are no Topics in this entity 
 #{/else}
 <a href="@{Topics.creatingTopic(${e.id})}">Create Topic  </a> <br>
 